import request from '@/utils/request'

// 统计登录客户数趋势
export function loginTrends (query) {
  return request({
    url: '/statistics/logininfo/number/trends',
    method: 'get',
    params: query
  })
}

// 统计登录客户数平均趋势
export function perCapitaVisits (query) {
  return request({
    url: '/statistics/logininfo/average/trends',
    method: 'get',
    params: query
  })
}

// 查询客户登录信息列表
export function pagePurchaserLogininfo (query) {
  return request({
    url: '/statistics/logininfo',
    method: 'get',
    params: query
  })
}

// 获取下单客户数量
export function getOrderedPurchaserSum (query) {
  return request({
    url: '/statistics/logininfo/ordered/sum',
    method: 'get',
    params: query
  })
}
